﻿#ifndef AIFACEFORM_H
#define AIFACEFORM_H

#include <QWidget>
#include "functional"

namespace Ui
{
    class AiFaceForm;
}

class AiFaceForm : public QWidget
{
    Q_OBJECT

public:
    explicit AiFaceForm(const QString& ip, QWidget* parent = nullptr);
    ~AiFaceForm();
    static void on_search_employees(const QString& response);
    static AiFaceForm* pThis;    //静态对象指针

    static void on_search_channel(const QString& response);

private slots:

    void on_search_employee_clicked();

    void on_add_employee_clicked();

    void on_revise_employee_clicked();

    void on_delete_employee_clicked();

    void on_search_channel_clicked();

    void on_tbn_channel_clicked();

    void on_tbn_employee_clicked();

    void on_add_channel_clicked();

    void on_revise_channel_clicked();

    void on_delete_channel_clicked();

    void on_reset_employee_clicked();

    void on_btn_page_up_2_clicked();

    void on_btn_page_down_clicked();

    void on_btn_page_up_clicked();

    void on_btn_page_down_2_clicked();

private:
    void initform();


private:
    Ui::AiFaceForm* ui;
    QString m_ip;
    int total_pages;
    int current_page;
    int total_pages_2;
    int current_page_2;


};

#endif // AIFACEFORM_H
